home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 34.zip / BS1 part 34 / FredFish PD 304.adf / Skel / helpwin.h < prev    next >
C/C++ Source or Header  |  1990-01-10  |  6KB  |  170 lines

  1. /*
  2.  * helpwin.h : Intuition structures needed for the help() & about()
  3.  *             functions in abouthelp.c. Created with PowerWindows 2.0 by
  4.  *             Joel Swank 1/5/89
  5.  */
  6.  
  7. extern struct TextAttr TOPAZ80;
  8.  
  9. SHORT BorderVectorsHelp[] = {
  10.     0,0,
  11.     80,0,
  12.     80,17,
  13.     0,17,
  14.     0,0
  15. };
  16. struct Border BorderHelp = {
  17.     -2,-1,    /* XY origin relative to container TopLeft */
  18.     3,0,JAM1,    /* front pen, back pen and drawmode */
  19.     5,    /* number of XY vectors */
  20.     BorderVectorsHelp,    /* pointer to XY vectors */
  21.     NULL    /* next border in list */
  22. };
  23.  
  24. extern struct TextAttr TOPAZ60;
  25.  
  26. struct IntuiText ITextHelp = {
  27.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  28.     20,4,    /* XY origin relative to container TopLeft */
  29.     &TOPAZ60,    /* font pointer or NULL for default */
  30.     (UBYTE *)"MORE",    /* pointer to text */
  31.     NULL    /* next IntuiText structure */
  32. };
  33.  
  34. struct Gadget HelpDone_Gad = {
  35.     NULL,    /* next gadget */
  36.     283,157,    /* origin XY of hit box relative to window TopLeft */
  37.     77,16,    /* hit box width and height */
  38.     NULL,    /* gadget flags */
  39.     RELVERIFY,    /* activation flags */
  40.     BOOLGADGET,    /* gadget type flags */
  41.     (APTR)&BorderHelp,    /* gadget border or image to be rendered */
  42.     NULL,    /* alternate imagery for selection */
  43.     &ITextHelp,    /* first IntuiText structure */
  44.     NULL,    /* gadget mutual-exclude long word */
  45.     NULL,    /* SpecialInfo structure */
  46.     NULL,    /* user-definable data */
  47.     NULL    /* pointer to user-definable data */
  48. };
  49.  
  50. #define GadgetListHelp HelpDone_Gad
  51.  
  52. struct NewWindow NewWindowStructureHelp = {
  53.     0,10,    /* window XY origin relative to TopLeft of screen */
  54.     640,185,    /* window width and height */
  55.     0,1,    /* detail and block pens */
  56.     GADGETUP,    /* IDCMP flags */
  57.     WINDOWDRAG+WINDOWDEPTH,    /* other window flags */
  58.     &HelpDone_Gad,    /* first gadget in gadget list */
  59.     NULL,    /* custom CHECKMARK imagery */
  60.     (UBYTE *)"Skeleton Help",    /* window title */
  61.     NULL,    /* custom screen pointer */
  62.     NULL,    /* custom bitmap */
  63.     5,5,    /* minimum width and height */
  64.     640,200,    /* maximum width and height */
  65.     WBENCHSCREEN    /* destination screen type */
  66. };
  67.  
  68. /*
  69.  *    Data describing the requester text
  70.  *
  71.  */
  72.  
  73. struct IntuiText oktxt = {
  74.     2,1,JAM2,    /* front and back text pens, drawmode and fill byte */
  75.     5,3,    /* XY origin relative to container TopLeft */
  76.     &TOPAZ80,    /* font pointer or NULL for default */
  77.     (UBYTE *)"OK",    /* pointer to text */
  78.     NULL    /* next IntuiText structure */
  79. };
  80.  
  81. struct IntuiText opfailtxt = {
  82.     2,1,JAM2,    /* front and back text pens, drawmode and fill byte */
  83.     14,16,    /* XY origin relative to container TopLeft */
  84.     &TOPAZ80,    /* font pointer or NULL for default */
  85.     (UBYTE *)"Open Failed",    /* pointer to text */
  86.     NULL    /* next IntuiText structure */
  87. };
  88.  
  89. struct IntuiText winfailtxt = {
  90.     2,1,JAM2,    /* front and back text pens, drawmode and fill byte */
  91.     14,16,    /* XY origin relative to container TopLeft */
  92.     &TOPAZ80,    /* font pointer or NULL for default */
  93.     (UBYTE *)"Window failed to open",    /* pointer to text */
  94.     NULL    /* next IntuiText structure */
  95. };
  96.  
  97.  
  98. struct IntuiText cantxt = {
  99.     2,1,JAM2,    /* front and back text pens, drawmode and fill byte */
  100.     5,3,    /* XY origin relative to container TopLeft */
  101.     &TOPAZ80,    /* font pointer or NULL for default */
  102.     (UBYTE *)"CANCEL",    /* pointer to text */
  103.     NULL    /* next IntuiText structure */
  104. };
  105.  
  106. struct IntuiText retrytxt = {
  107.     2,1,JAM2,    /* front and back text pens, drawmode and fill byte */
  108.     5,3,    /* XY origin relative to container TopLeft */
  109.     &TOPAZ80,    /* font pointer or NULL for default */
  110.     (UBYTE *)"RETRY",    /* pointer to text */
  111.     NULL    /* next IntuiText structure */
  112. };
  113.  
  114. struct IntuiText aboutmsg4 = {
  115.     0,1,JAM2,    /* front and back text pens, drawmode and fill byte */
  116.     14,40,    /* XY origin relative to container TopLeft */
  117.     &TOPAZ80,    /* font pointer or NULL for default */
  118.     (UBYTE *) "       January 9, 1989",    /* pointer to text */
  119.     NULL    /* next IntuiText structure */
  120. };
  121.  
  122. struct IntuiText aboutmsg3 = {
  123.     2,1,JAM2,    /* front and back text pens, drawmode and fill byte */
  124.     14,30,    /* XY origin relative to container TopLeft */
  125.     &TOPAZ80,    /* font pointer or NULL for default */
  126.     (UBYTE *)  "        by Joel Swank",    /* pointer to text */
  127.     &aboutmsg4 /* next IntuiText structure */
  128. };
  129.  
  130. struct IntuiText aboutmsg2 = {
  131.     0,1,JAM2,    /* front and back text pens, drawmode and fill byte */
  132.     14,20,    /* XY origin relative to container TopLeft */
  133.     &TOPAZ80,    /* font pointer or NULL for default */
  134.     (UBYTE *) "          Version 1",
  135.     &aboutmsg3    /* next IntuiText structure */
  136. };
  137.  
  138. struct IntuiText aboutmsg = {
  139.     0,1,JAM2,    /* front and back text pens, drawmode and fill byte */
  140.     14,10,    /* XY origin relative to container TopLeft */
  141.     &TOPAZ80,    /* font pointer or NULL for default */
  142.     (UBYTE *)"Skeleton Workbench Application",    /* pointer to text */
  143.     &aboutmsg2    /* next IntuiText structure */
  144. };
  145.  
  146. /*    Text for Help Screen    */
  147.  
  148. char *HelpText[40] = {
  149. "",
  150. "",
  151. "",
  152. "                      Skeleton Workbench Application",
  153. "",
  154. "                 This program provides the following routines:",
  155. "",
  156. "                 * Initialization/termination",
  157. "                 * CLI and Workbench argument processing",
  158. "                 * Help window",
  159. "                 * About/Version Requester",
  160. "                 * Menu input handling",
  161. "                 * Gadget input handling",
  162. "                 * Error handling with AutoRequesters",
  163. "\f",
  164. "",
  165. "",
  166. "",
  167. "                            That's ALL Folks!",
  168. NULL };
  169.  
  170.